# 创建时间：2025/5/3 星期六 16:56
# 创建人：李德才


file = open('01-向文件输出-01.txt', 'w', encoding='utf-8')
print('向文件输出', file=file)
file.close()

with open('01-向文件输出-02.txt', 'w', encoding='utf-8') as file:
    file.write('向文件输出')
